package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GoodviceMapper;
import com.ruoyi.system.domain.Goodvice;
import com.ruoyi.system.service.IGoodviceService;
import com.ruoyi.common.support.Convert;

/**
 * 商品副属性 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class GoodviceServiceImpl implements IGoodviceService 
{
	@Autowired
	private GoodviceMapper goodviceMapper;

	/**
     * 查询商品副属性信息
     * 
     * @param goodVice 商品副属性ID
     * @return 商品副属性信息
     */
    @Override
	public Goodvice selectGoodviceById(Integer goodVice)
	{
	    return goodviceMapper.selectGoodviceById(goodVice);
	}
	
	/**
     * 查询商品副属性列表
     * 
     * @param goodvice 商品副属性信息
     * @return 商品副属性集合
     */
	@Override
	public List<Goodvice> selectGoodviceList(Goodvice goodvice)
	{
	    return goodviceMapper.selectGoodviceList(goodvice);
	}
	
    /**
     * 新增商品副属性
     * 
     * @param goodvice 商品副属性信息
     * @return 结果
     */
	@Override
	public int insertGoodvice(Goodvice goodvice)
	{
	    return goodviceMapper.insertGoodvice(goodvice);
	}
	
	/**
     * 修改商品副属性
     * 
     * @param goodvice 商品副属性信息
     * @return 结果
     */
	@Override
	public int updateGoodvice(Goodvice goodvice)
	{
	    return goodviceMapper.updateGoodvice(goodvice);
	}

	/**
     * 删除商品副属性对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteGoodviceByIds(String ids)
	{
		return goodviceMapper.deleteGoodviceByIds(Convert.toStrArray(ids));
	}
	
}
